import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;


public class mycla {
	public static void main(String[] args) throws FileNotFoundException {
		Scanner jin = new Scanner(new File("langlst.json.txt"));
		String name="";
		String val="";
		while (jin.hasNext()){
			String line=jin.nextLine();
			if (line.startsWith("<td><code>")){
				val=line.replace("<td><code>", "").replace("</code></td>", "").trim();
				System.out.printf("{\"name\":\"%s\",\"val\":\"%s\"},\n",name,val);
			}else if (line.startsWith("<td>")){
				name=line.replace("<td>","").replace("</td>", "").trim();
			}
		}
	}
}
